package com.pet.petadoption.adoption.mapper;

import com.pet.petadoption.adoption.entity.Adoption;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface AdoptionMapper {

   List<Adoption> findAdoption(Map<String,Object> map) ;
   Boolean delAdoptionById(@Param("id") Integer id);
   Adoption findById(Map<String,Object> map);
   List<Adoption> findByUname (Map<String,Object> map);
   boolean request (@Param("pet_id") Integer pet_id,@Param("adopter_id") Integer adopter_id);

   Boolean delNoAdoptionById(@Param("id") Integer id);
   Integer accessAdoption (@Param("id") Integer id);
}




